<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>




        
  
  
  
  <link type="text/css" rel="stylesheet" href="./css/template.css">




        
  
  
  
  <link type="text/css" rel="stylesheet" href="./css/SyntaxHighlighter.css">




        
  
  
  
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">




        
        
  
  
  
  
  
  
  <title>Pr&eacute;sentation de Solaris 9 - Articles - 1/1 -
Java&nbsp;&amp;&nbsp;Solaris&nbsp;par&nbsp;le&nbsp;Laboratoire&nbsp;SUPINFO&nbsp;des&nbsp;technologies&nbsp;Sun&nbsp;</title>
  <script language="javascript" src="./js/shInit.js"></script>
        
  
  
  
  <script language="javascript" src="./js/shCore.js"></script>
        
  
  
  
  <script language="javascript" src="./js/shBrushCpp.js"></script>
        
  
  
  
  <script language="javascript" src="./js/shBrushCSharp.js"></script>
        
  
  
  
  <script language="javascript" src="./js/shBrushCss.js"></script>
        
  
  
  
  <script language="javascript" src="./js/shBrushDelphi.js"></script>
        
  
  
  
  <script language="javascript" src="./js/shBrushJava.js"></script>
        
  
  
  
  <script language="javascript" src="./js/shBrushJScript.js"></script>
        
  
  
  
  <script language="javascript" src="./js/shBrushPhp.js"></script>
        
  
  
  
  <script language="javascript" src="./js/shBrushPython.js"></script>
        
  
  
  
  <script language="javascript" src="./js/shBrushRuby.js"></script>
        
  
  
  
  <script language="javascript" src="./js/shBrushSql.js"></script>
        
  
  
  
  <script language="javascript" src="./js/shBrushVb.js"></script>
        
  
  
  
  <script language="javascript" src="./js/shBrushXml.js"></script>
        <keywords></keywords>
</head>


<body>
derniere,version,fonctionalite,Solaris,Applicatif,presentation,de,solaris,9,articles,1,1,certification,sun,java,solaris,articles,essentiels,tips,astuces,codes,exemple,tutorial,developpement,jsp,servlet,jdbc,jdo,j2se,j2ee,laboratoire
<author>G&eacute;gory PASCAL</author>
    
        
<div class="chapter">
            <img src="images/set.jpg">
            <br>




            <img src="images/logo.png" width="300">
            
<div class="subChapter">
                
<div class="chapter">
                    
<h2>Introduction</h2>




                    
<p>Welcome, this article will present you Solaris 9 by SUN. We will do a rapid overview of the newest Sun Microsystem OS.</p>




                    
<p>In this context, we will split this presentation into 4 parts:</p>




                    
<ol>




                        <li>
                            <a href="#1">Presentation</a>
                        </li>




                        <li>
                            <a href="#2">Architecture</a>
                        </li>




                        <li>
                            <a href="#3">Configuration</a>
                        </li>




                        <li>
                            <a href="#4">Administration</a>
                        </li>




                    
</ol>




                    
<p>And to finish with, we will conclude about Solaris and will give you a couple of&nbsp;<a href="#liens">links</a>
                        in order to deepen your knowledge about Solaris.
                    </p>




                </div>




                <a name="1">
                </a>
<div class="chapter">
<a name="1">                    <img src="images/sol9logo.jpg" align="right">
                    </a>
<h2><a name="1">1. Presentation</a></h2>




<a name="1">                    </a>
<p><a name="1">To begin with, here some Sun hardware features:</a></p>




<a name="1">                    </a>
<ul>




  <a name="1">                        <li>64 bits architecture</li>




                        <li>Important CPU cachet ( 2Mb, 4Mb or 8 Mb)</li>




                        <li>many RAM</li>




                        <li>OBP (OpenBootProm)</li>




                        <li>Not necessarily PCI (often SCSI)</li>




                        <li>Graphic interface (CDE)</li>




                        <li>UNIX powered</li>




                    </a>
</ul>




<a name="1">                    </a>
<div>
<a name="1">                        <img src="images/sunblade.gif">
                        <br>




                        Exploded view of a&nbsp;SUN Blade 100 unit.
                    </a></div>




<a name="1">                    </a>
<p><a name="1">In order to run Solaris 9 in good condition you must have at least:</a></p>




<a name="1">                    </a>
<ul>




  <a name="1">                        <li>A&nbsp;UltraSparc/SPARC 32 processor (can work also on x86 &amp; AMD Opteron)</li>




                        <li>2,3 Go disc space</li>




                        <li>68 MB to 128 MB of ram</li>




                    </a>
</ul>




<a name="1">                    </a>
<div class="subChapter">
<a name="1">                        </a>
<h3><a name="1">1.1 First remarks</a></h3>




<a name="1">                        </a>
<p>
<a name="1">Even if a part of the installation takes place in a Solaris 9 shell (aka SunOS 2.9). Solaris has a GUI (<acronym name="Common Desktop Environment">CDE</acronym>
                            /Gnome) which help the user to easily install and take control of the server.
                        </a></p>




<a name="1">                        </a>
<div>
<a name="1">                            <img src="images/gnome_intro_small.jpg">
                        </a></div>




<a name="1">                        </a>
<p><a name="1">People used to Linux will feel right at home, Solaris is a UNIX but with some subtleties:</a></p>




<a name="1">                        </a>
<ul>




  <a name="1">                            <li>A bit of BSD</li>




                            
                            <li>Some of SystemV</li>




                            <li style="color: rgb(102, 102, 102);">Naming of partition proper to Solaris</li>



  <li>No&nbsp;auto completion in the console</li>




                        </a>
</ul>




<a name="1">                    </a></div>




<a name="1">                    </a>
<div class="subChapter">
<a name="1">                        </a>
<h3><a name="1">1.2 Differences with Unix</a></h3>




<a name="1">                        </a>
<p><a name="1">Some of the differences with UNIX:</a></p>




<a name="1">                        </a>
<ul>




  <a name="1">                            <li>No kernel recompilation (patches and modules system)</li>




                            <li>Kernel parameters are not often modify</li>




                            <li>/etc/vfstab is equivalent to the Linux fstab</li>




                        </a>
</ul>




<a name="1">                        </a>
<p>
<a name="1">You can find similarities with your favorite OS and, where applicable, equivalent of&nbsp;mains commands on
                            </a><a href="http://www.unixporting.com/quickguide.html" target="_blank">unixporting.com</a>
                            .
                        </p>




                    </div>




                </div>




                <a name="2">
                </a>
<div class="chapter">
<a name="2">                    <img src="images/sunray_small.jpg" align="right">
                    </a>
<h2><a name="2">2. Architecture</a></h2>




<a name="2">                    </a>
<p>
<a name="2">The <strong>man <span style="font-weight: normal;">command</span></strong>
enables you to display the shell commands manual, for more detailed
information about the file system tap the following command: </a></p>




<a name="2">                    <span class="cmd_line_lvl">$&gt;</span>
                    <span class="cmd_line">man -s5 filesystem</span>
                    </a>
<div class="subChapter">
<a name="2">                        </a>
<h3><a name="2">2.1 Tree</a></h3>




<a name="2">                        </a>
<p>
<a name="2">Every file has a name link to an&nbsp;inode composed by 2 parts:
                            <br>




                            Information about the file (UID, GID, permissions, size)
                            <br>




                            Pointers to data bloc associate to the file
                        </a></p>




<a name="2">                        </a>
<div class="subChapter">
<a name="2">                            </a>
<h3><a name="2">2.1.1 Different kind of files</a></h3>




<a name="2">                            </a>
<h4><a name="2">Ordinary file</a></h4>




<a name="2">                            </a>
<ul>




  <a name="2">                                <li>Directories (d)</li>




                                <li>Symbolics links (l)</li>




                            </a>
</ul>




<a name="2">                            </a>
<h4><a name="2">Special files</a></h4>




<a name="2">                            </a>
<p><a name="2">Special files allow access to devices. They are created
by Solaris 9 with the devsadm command which will check the presence of
new devices and will create&nbsp;specials files for them.</a></p>




<a name="2">                            </a>
<p>
<a name="2">                                <u>Bloc " b " mod :</u> In
the case of an hard drive, specials files in bloc mod will invoke I/O
operations depending on the bloc size defined (for UFS : 8kb) </a></p>




<a name="2">                            </a>
<p>
<a name="2">                                <u>Character " c " mod :</u>
In the case of an hard drive, special files in character mod invoke I/O
operations according to the smallest addressable unit of a disc, namely
one sector (512 bytes) </a></p>




<a name="2">                        </a></div>




<a name="2">                        </a>
<div class="subChapter">
<a name="2">                            </a>
<h3><a name="2">2.1.2 Presentation du filesystem</a></h3>




<a name="2">                            </a>
<table align="center">




                                <tbody>




                                    <tr>




                                        <td>
                                            <b>/</b>
                                        </td>




                                        <td>Filesystem root</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/bin</b>
                                        </td>




                                        <td>
                                            Link to <b>/usr/bin</b>
                                        </td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/platform</b>
                                        </td>




                                        <td>Kernel module depending on platform</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/opt</b>
                                        </td>




                                        <td>The additional applications</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/kernel</b>
                                        </td>




                                        <td>Constrains kernels' module</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/tmp</b>
                                        </td>




                                        <td>is the default directory on ram (tmpfs)</td>




                                    </tr>




                                    <tr>




                                        <td colspan="2">&nbsp;</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/dev</b>
                                        </td>




                                        <td>
                                            contains links to others in
                                            <b>
                                                /devices
                                                <b>
                                            </b>
                                        </b></td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/dev/dsk</b>
                                        </td>




                                        <td>Bloc mod disc</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/dev/rdsk/</b>
                                        </td>




                                        <td>Raw mod disc</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/dev/fd/</b>
                                        </td>




                                        <td>File descriptor</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/dev/md/</b>
                                        </td>




                                        <td>LVM device management</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/dev/rmt/</b>
                                        </td>




                                        <td>Tape drives</td>




                                    </tr>




                                    <tr>




                                        <td colspan="2">&nbsp;</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/etc/init.d/</b>
                                        </td>




                                        <td>Start-up and shutdown scripts</td>




                                    </tr>




                                    <tr>




                                    </tr>



    <tr>




                                        <td>
                                            <b>/etc/vfstab</b>
                                        </td>




                                        <td>
                                            equivalent of
                                            <b>/etc/fstab</b>
                                        </td>




                                    </tr>




                                    <tr>




                                    </tr>



    <tr>




                                        <td>
                                            <b>/etc/lib/</b>
                                        </td>




                                        <td>Dynamics libraries</td>




                                    </tr>




                                    <tr>




                                    </tr>



    <tr>




                                        <td>
                                            <b>/etc/dfs/</b>
                                        </td>




                                        <td>NFS configuration files</td>




                                    </tr>




                                    <tr>




                                    </tr>



    <tr>




                                        <td>
                                            <b>/etc/default/</b>
                                        </td>




                                        <td>Different software default information</td>




                                    </tr>




                                    <tr>




                                    </tr>



    <tr>




                                        <td colspan="2">&nbsp;</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/usr/ccs/</b>
                                        </td>




                                        <td>Libraries and C programme</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/usr/dt/</b>
                                        </td>




                                        <td>CDE GUI</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/usr/kernel/</b>
                                        </td>




                                        <td>None required start-up kernel modules</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/usr/opt/</b>
                                        </td>




                                        <td>Packages configuration information</td>




                                    </tr>




                                    <tr>




                                        <td>
                                            <b>/usr/java/</b>
                                        </td>




                                        <td>Symbolic link which define the default Java environment for the system in the case where more than one environment is installed</td>




                                    </tr>




                                
  
  
  
  </tbody>
                            
</table>




<a name="2">                        </a></div>




<a name="2">                    </a></div>




<a name="2">                    </a>
<div class="subChapter">
<a name="2">                        </a>
<h3><a name="2">2.2 Software</a></h3>




<a name="2">                        </a>
<p><a name="2">There are 3 types of software component:</a></p>




<a name="2">                        </a>
<ul>




  <a name="2">                            <li>Les packages</li>




                            <li>Les clusters (packages' group)</li>




                            <li>Groups, aka metaclusters (clusters' group)</li>




                        </a>
</ul>




<a name="2">                        </a>
<div id="result_box" dir="ltr">There is even talk of opening the source code for some time...</div>



<p><a name="2">
                        </a></p>




<a name="2">                        </a>
<p>
<a name="2">In order to know which&nbsp;package is already installed, use the command
                            <b>Pkginfo</b>.
                            <br>



Solaris and UNIX commands are quit the same, many software are
compliant and can be&nbsp; compiled with Solaris (top, wmaker, mc,
nmap, DooM ;), more and more libraries are compliant and there is
even talk of opening the source code for some time...</a></p>



<p>
<a name="2">In order to get information about packages, try also commands
                            <b>showrev -p</b> and
                            <b>patchadd -p</b>
                            .
                        </a></p>




<a name="2">                        </a>
<p><a name="2">Here a little list of useful commands for this OS.</a></p>




<a name="2">                        </a>
<p>
<a name="2">                            <b>
                                <u>Format:</u>
                            </b>
                            <br>



As its name suggests this command permit to format, With Solaris the
first disc sector where is stored the partition table is called VTOC
(Volume Table of Content). </a></p>




<a name="2">                        </a>
<p>
<a name="2">                            <b>
                                <u>Fsck:</u>
                            </b>
                            <br>



Permits to check the filesystem integrity (never use it on a mounted filesystem)
                            <br>




                            <span class="cmd_line_lvl">#&gt;</span>
                            <span class="cmd_line">fsck /dev/rdsk/c0t0d0s7</span>
                        </a></p>




<a name="2">                        </a>
<p>
<a name="2">                            <b>
                                <u>Mount:</u>
                            </b>
                            <br>



Needed command to use a partition or a network share.
                            <br>
<span style="font-size: 12pt; line-height: 115%; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;" lang="EN-US">Allow
to set up a device to a mount point.</span><br>



Type mount -v to display current mounted device.
                        </a></p>




<a name="2">                        </a>
<p>
<a name="2">                            <b>
                                <u>Newfs:</u>
                            </b>
                            <br>



Allows to formating a partition in UFS, the Solaris data format.
                            <br>




                            <span class="cmd_line_lvl">#&gt;</span>
                            <span class="cmd_line">newfs /dev/rdsk/c1t3d0s0</span>
                        </a></p>




<a name="2">                        </a>
<p>
<a name="2">                            <b>
                                <u>Fstyp:</u>
                            </b>
                            <br>



Displays information on the partition passed on argument.
                            <br>




                            <span class="cmd_line_lvl">#&gt;</span>
                            <span class="cmd_line">Fstyp -v /dev/rdsk/c0t0d0s0</span>
                        </a></p>




<a name="2">                        </a>
<p>
<a name="2">                            <b>
                                <u>Tunefs:</u>
                            </b>
                            <br>



This utility allows dynamic attribute change on a partition.
                        </a></p>




<a name="2">                        </a>
<p>
<a name="2">                            <b>
                                <u>Du, df, quot:</u>
                            </b>
                            <br>



These commands enable you to monitor the use of the file system, used space, free space, the use of a directory...
                        </a></p>




<a name="2">                        </a>
<p>
<a name="2">                            <b>
                                <u>cat:</u>
                            </b>
                            <br>



Display the content of a file in the shell
                        </a></p>




<a name="2">                        </a>
<p>
<a name="2">                            <b>
                                <u>smc:</u>
                            </b>
                            <br>



Solaris Management Console (SMC) is an environment where &nbsp;you can
configure, manage and launch&nbsp;SEAS (Solaris Easy Access Server)
products. <br>



Do a <b>man scm</b>
                            in order to get detail on&nbsp;options that will allow you to launch a program.
                        </a></p>




<a name="2">                    </a></div>




<a name="2">                </a></div>




<a name="2">                </a><a name="3">
                </a>
<div class="chapter">
<a name="3">                    <img src="images/SMC_logo.jpg" align="right">
                    </a>
<h2><a name="3">3. Configuration</a></h2>




<a name="3">                    </a>
<p><a name="3">In this part, we'll see how&nbsp;network addresses are
assigned to the different networks interfaces; we will learn to change
the default hostname and how to configure the inetd daemon.</a></p>




<a name="3">                    </a>
<div class="subChapter">
<a name="3">                        </a>
<h3><a name="3">3.1 Configuration of networks interfaces</a></h3>




<a name="3">                        </a>
<p>
<a name="3">With Solaris, it's possible to display&nbsp;IP and MAC address for an interface with the
                            <b>ifconfig -a </b>command, we also use this command to assign an address and a sub-network
mask to an interface, add a gateway... </a></p>




<a name="3">                        </a>
<p><a name="3">The /etc/ directory contains one or
several&nbsp;hostname files depending on the number of network
interface, for example a file /etc/hostname.dnet0 for the dnet0
interface, another file /etc/hostname.hme0 for the hme0 interface,
etc...</a></p>




<a name="3">                        </a>
<p><a name="3">Each of these files contains an entry which configures its corresponding interface:</a></p>




<a name="3">                        <span class="cmd_line_lvl">#&gt;</span>
                        <span class="cmd_line">cat /etc/hostname.dnet0</span>
                        <br>




                        <span class="cmd_line_lvl">&nbsp;&nbsp;&nbsp;</span>
                        <span class="cmd_line">172.16.0.42</span>
                        </a>
<h4><a name="3">How to change the Hostname (unknown)</a></h4>




<a name="3">                        </a>
<p>
<a name="3">Normally the&nbsp;<b>hostname server_name </b>commands works,
                            but during the next boot it won't be effective anymore.
                        </a></p>




<a name="3">                        </a>
<p>
<a name="3">                            You can also use Solaris
                            <b>sys-unconfig command </b>or <b>sysidconfig</b>,
the&nbsp;sys-unconfig command permits to delete the
machine configuration and to reconfigure it; the machine will restart
after&nbsp;using this command. </a></p>




<a name="3">                        </a>
<p><a name="3">Or you can edit all files and change the hostname;</a></p>




<a name="3">                        </a>
<ul>




  <a name="3">                            <li>
                                /etc/hostname.[&nbsp;<span style="">interface name ( dnet0, hme0, le0, ...)</span>
                                ]
                            </li>




                            <li>/etc/nodename</li>




                            <li>/etc/defaultrouter</li>




                            <li>/etc/netmasks</li>




                        </a>
</ul>




<a name="3">                        </a>
<h4><a name="3">DHCP Hostname problem</a></h4>




<a name="3">                        </a>
<p>
<a name="3">If with DHCP you don't obtain the correct&nbsp;hostname localize the following lines in the file
                            <b>/etc/rcS.d/S30network.sh :</b>
                        </a></p>




<a name="3">                        <span class="cmd_line_lvl">$&gt;</span>
                        <span class="cmd_line">if [ -z "$hostname" ]; then</span>
                        <br>




                        <span class="cmd_line">hostname="unknown"</span>
                        <br>




                        <span class="cmd_line">fi</span>
                        <br>




                        </a>
<p>
<a name="3">and edit them in order to use the specify hostname in
                            <b>/etc/nodename</b>
                            :
                        </a></p>




<a name="3">                        <span class="cmd_line_lvl">$&gt;</span>
                        <span class="cmd_line">if [ -z "$hostname" ]; then</span>
                        <br>




                        <span class="cmd_line">hostname="unknown"</span>
                        <br>




                        <span class="cmd_line">if [ -f /etc/nodename ]; then</span>
                        <br>




                        <span class="cmd_line">hostname="`shcat /etc/nodename 2&gt;/dev/null`</span>
                        <br>




                        <span class="cmd_line">fi</span>
                        <br>




                        <span class="cmd_line">fi</span>
                    </a></div>




<a name="3">                    </a>
<div class="subChapter">
<a name="3">                        </a>
<h3><a name="3">3.2&nbsp;inetd configuration</a></h3>




<a name="3">                        </a>
<p>
<a name="3">The installation open by default some potentially dangerous services, you first action will be to edit the file <b>/etc/inetd.conf</b> and to comment any services that you don't need because they can be eventually used by hacker to attack your server. </a></p>




<a name="3">                        </a>
<p><a name="3">To do that, enter the following commands in a shell:</a></p>




<a name="3">                        <span class="cmd_line_lvl">#&gt;</span>
                        <span class="cmd_line">cd /etc/</span>
                        <br>




                        <span class="cmd_line_lvl">#&gt;</span>
                        <span class="cmd_line">cp inetd.conf inetd.conf.old</span>
                        <br>




                        <span class="cmd_line_lvl">#&gt;</span>
                        <span class="cmd_line">gedit inetd.conf</span>
                        <br>




                        </a>
<p><a name="3">You may have the following display...</a></p>




<a name="3">                        <img src="images/inetd.conf.jpg">
                        </a>
<p><a name="3">Edit the file by adding # in front of any&nbsp;services
you don't need (telnet, in.fingerd...) then close&nbsp;gedit and
restatrt inetd :</a></p>




<a name="3">                        <span class="cmd_line_lvl">#&gt;</span>
                        <span class="cmd_line">Pkill -HUP inetd</span>
                    </a></div>




<a name="3">                </a></div>




<a name="3">                </a><a name="4">
                </a>
<div class="chapter">
<a name="4">                    <img src="images/sunserver_small.gif" align="right">
                    </a>
<h2><a name="4">4. Administration</a></h2>




<a name="4">                    </a>
<p><a name="4">This part is about apache server configuration and different networks configurations tests.</a></p>




<a name="4">                    </a>
<div class="subChapter">
<a name="4">                        </a>
<h3><a name="4">4.1&nbsp;Apache configuration</a></h3>




<a name="4">                        </a>
<p><a name="4">The famous&nbsp;apache server is normally installed by default on Solaris 9, we will see how it's works here.</a></p>




<a name="4">                        </a>
<p>
<a name="4">The server configuration file, httpd.conf is located in the following folder <b>/usr/local/apache/conf/</b>
, if you never configure this server before the configuration file is named http.conf-dist. We are going to rename it,
edit it and launch the server. </a></p>




<a name="4">                        </a>
<p><a name="4">In a shell enter these commands:</a></p>




<a name="4">                        </a>
<p>
<a name="4">                            <span class="cmd_line_lvl">#&gt;</span>
                            <span class="cmd_line">cd /usr/local/apache/conf/</span>
                            <br>




                            <span class="cmd_line_lvl">#&gt;</span>
                            <span class="cmd_line">cp httpd.conf.dist httpd.conf</span>
                            <br>




                            <span class="cmd_line_lvl">#&gt;</span>
                            <span class="cmd_line">gedit httpd.conf</span>
                        </a></p>




<a name="4">                        </a>
<p>
<a name="4">Normally you won't&nbsp;have to edit to much this file, the most important&nbsp;variable is with no doubt <b>DocumentRoot</b> which point to the directory where is located the file to be placed on your Web server.
It's advisable to point to the root directory of your web application. You can define another path for your log files:
                            <b>access_log</b> and
                            <b>error_log</b>
                            which may which tends to grow rapidly on active sites.</a></p>


<p><a name="4">
                        </a></p>




<a name="4">                        `
                        <img src="images/apache.jpg">
                        </a>
<p>
<a name="4"><span style="color: rgb(102, 102, 102);">When you have finished</span><span style="font-size: 12pt; line-height: 115%; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;" lang="EN-US"> setting
up </span><span style="color: rgb(102, 102, 102);"> the configuration file,
save it and return it to the console, go to the&nbsp;apache binary directory and seek for the
apachectl scrip</span>t. <br>


You can test your configuration by tapping
                            <b>apachectl configtest</b>
                            and if no errors are return, you can launch the server using this following command:
                        </a></p>




<a name="4">                        <span class="cmd_line_lvl">#&gt;</span>
                        <span class="cmd_line">./usr/local/apache/bin/apachectl start</span>
                    </a></div>




<a name="4">                    </a>
<div class="subChapter">
<a name="4">                        </a>
<h3><a name="4">4.2 Network tests</a></h3>




<a name="4">                        </a>
<p>
<a name="4">In order to display the routing table neter the&nbsp;<b>netstat -r</b> command. We can also use the
                            <b>netstat -a</b>
                            to vizualize the network&nbsp;connections ongoing and pending
                        </a></p>




<a name="4">                        </a>
<p>
<a name="4"><span style="font-size: 12pt; line-height: 115%; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;" lang="EN-US">The ping,
universal command to test if a network connection is establishes, exists also
with Solaris</span>, so the <b>ping ceasar</b>
                            command will return
                            <b>ceasar is alive</b>
if the configuration is operational and if the
ceasar server response to&nbsp;ICMP request. </a></p>




<a name="4">                        </a>
<p>
<a name="4">                        </a></p>



<p>
<a name="4">The <b>snoop</b>
command is equivalent to Linux tcpdump, in order to obtain more information add the -v (verbose) flag: </a></p>




<a name="4">                        <span class="cmd_line_lvl">#&gt;</span>
                        <span class="cmd_line">snoop solaris9 gw1</span>
                        </a>
<p><a name="4">This will display every data exchange between 'solaris9' and 'gw1 machine'.</a></p>




<a name="4">                    </a></div>




<a name="4">                </a></div>




<a name="4">                </a><a name="conclu">
                </a>
<div class="chapter">
<a name="conclu">                    </a>
<h2><a name="conclu">Conclusion</a></h2>




<a name="conclu">                    </a>
<p><a name="conclu">Even if the global performance is not the
best,&nbsp;Sun machines are characterized by a good availability
and a great ability to support high traffic.</a></p>




<a name="conclu">                    </a>
<p><a name="conclu">One of the best things&nbsp;is as in
most&nbsp;multi-processor architectures, we have the possibility to
allocate n processors to one specific process and to create virtual
server...</a></p>




<a name="conclu">                </a></div>




<a name="conclu">                </a><a name="liens">
                </a>
<div class="chapter">
<a name="liens">                    </a>
<h2><a name="liens">Links</a></h2>




<a name="liens">                    </a>
<ul>




  <a name="liens">                        <li>
                            </li>



  </a><a href="http://wwws.sun.com/software/solaris/ds/ds-sol9oe/index.html" target="_blank">www.sun.com</a>&nbsp;Solaris 9 presentation
                        
                        <li>
                            <a href="http://www.sunfreeware.com" target="_blank">www.sunfreeware.com</a>
                            Free download of Solaris freeware</li>




                        <li>
                            <a href="http://www.sunstuff.org" target="_blank">www.sunstuff.org</a>
                            Online Sun Information Archive
                        </li>




                        <li>
                            <a href="http://everythingsolaris.org/" target="_blank">everythingsolaris.org</a> A very instructive website on Solaris
                        </li>




                        <li>
                            <a href="http://sysunconfig.net/unixtips/solaris.html" target="_blank">sysunconfig.net</a> Tons of&nbsp;tips for Solaris
                        </li>




                    
</ul>




                </div>




            </div>




        </div>




    
</body>
</html>
